package com.mmd.base.annotation;


import com.mmd.base.annotation.valid.impl.MobileValidValidator;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import static java.lang.annotation.ElementType.*;

@Target({ METHOD, FIELD, ANNOTATION_TYPE, CONSTRUCTOR, PARAMETER, TYPE_USE })
@Retention(RetentionPolicy.RUNTIME)
@Constraint(validatedBy = MobileValidValidator.class)
public @interface MobileValid {

    String message() ;

    Class<?>[] groups() default { };

    Class<? extends Payload>[] payload() default { };
}
